Send Mail Message
AutomatR.Outlook.SendMailMessage
The "Send Mail Message" activity in AutomatR is part of the Outlook activities package, designed to send an email message using Microsoft Outlook. This activity streamlines the process of sending emails within automation workflows.
Properties
Name | Description |
---|---|
Input | |
Account Name | Specifies the name of the Outlook account to use for sending the email. |
BCCEmailIDs | Specifies the email address(es) to be added in the BCC (blind carbon copy) field of the email. |
Body | Specifies the plain text body of the email. |
CCEmailIDs | Specifies the email address(es) to be added in the CC (carbon copy) field of the email. |
HTML Body | Specifies the HTML body of the email. |
Subject | Specifies the subject line of the email. |
To Email Address | Specifies the email address(es) of the primary recipient(s) of the email. |
Attachments | Specifies a list of file paths for attachments to be added to the email. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Enter the wait time in seconds (Example: 5 seconds, i.e., 5) to start the activity. |
Output | |
Response | Returns a boolean value indicating whether the email was sent successfully. Variables of relevant types (e.g., Boolean variables) to store the send status. |
How to use:
- Drag and drop the "Send Mail Message" activity onto the workflow.
- Configure the properties by specifying the necessary details such as account name, recipient email address, subject, body, etc.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to send the specified email using Microsoft Outlook.
Example:
Consider an example where the "Send Mail Message" activity is used to send an inquiry email:
Send Mail Message:
Display Name: "Send Inquiry Email"
Account Name: "myOutlookAccount"
To Email Address: "inquiry@example.com"
CC Email IDs: "cc@example.com"
BCC Email IDs: "bcc@example.com"
Subject: "Regarding Your Inquiry"
Body: "Dear User, Thank you for your inquiry. We will get back to you soon."
HTML Body: "<p>Dear User,</p><p>Thank you for your inquiry. We will get back to you soon.</p>"
Attachments: ["C:\Attachments\document.pdf"]
Response: isEmailSentSuccessfully
In this example, the activity sends an inquiry email to the specified recipient with additional recipients in CC and BCC. The email content includes both plain text and HTML body, and an attachment is added. The result of the send operation (success or failure) is stored in the Boolean variable "isEmailSentSuccessfully" for further handling in the workflow.